<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: widget/JsonForm.js</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: widget/JsonForm.js</h1>

    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/**
 * 根据JsonSchema 绘制json 表单
 * 对于不要显示但需要保存但数据（如：主键）的数据建议使用隐藏控件，有利于数据专递。
 *
 * redmicro all Copyright (c)
 * Created by seeker910 on 2023/3/18.
 */
Rsd.define('Rsd.widget.JsonForm', {
    extend: 'Rsd.container.Form',
    requires: [
        'Rsd.form.Text',
        'Rsd.form.TextArea',
        'Rsd.form.TextFK',
        'Rsd.form.Date',
        'Rsd.form.Time',
        'Rsd.form.Timestamp',
        'Rsd.form.Number',
        'Rsd.form.Hidden',
        'Rsd.form.Json',
        'Rsd.form.CheckBox',
        'Rsd.form.ComboBox',
        'Rsd.form.ComboBoxEx',
        'Rsd.form.ComboBoxEnum',
        'Rsd.form.Picker',
        'Rsd.form.Image',
        'Rsd.form.Images',
        'Rsd.control.Grid',
        'Rsd.control.GridToolBar'
    ],
    xtype: 'json-form',
    layout: 'fit',
    height: 'auto',
    //fields 已加载
    //isLoaded:false,
    readOnly: true,
    errorList: [],
    /*
    * 对于不要显示但需要保存但数据（如：主键）的数据建议使用隐藏控件，有利于数据专递。
    * */
    schema: null,
    /**
     * 
     */
    fieldWidth: '45%',
    //最后一次加载的数据对象
    //data:{}, 
    items: [],
    /**
     * 
     */
    bgColors:['rgba(172, 207, 238, 0.35)','rgb(240, 248, 255)','rgb(250, 235, 215)'],
    /*
     * */
    constructor: function JsonForm(config) {
        config = config || {};
        this.apply(config);
    },
    /*
    * */
    onAfterRender: function onAfterRender() {

        var me = this;

        setTimeout(function () {

            me.loadFields(me.schema);//render 之后会执行doLayout

            //出现滚动条 重新设置 该控件高度，不让该控件出现滚动条，让滚动条出现在该控件父控件中
            if (me.body.scrollHeight > me.body.clientHeight) {
                var _scrollHeight = me.body.scrollHeight + 45;

                me.height = _scrollHeight;
            }

        }, 50);

        me.callParent();
    },
    /** 
    {
        a: {
            $id: a,
            title: ,
            description: ,
            required: true,
            type: string,
            minLength: 0,
            maxLength: 0,
            pattern: ,
            format: ,
            $ref: ,
            dependencies: null,
            minProperties: 0,
            maxProperties: 0,
            additionalProperties: false,
            enum: null,
            default: null,
            examples: [123],
            allOf: [],
            anyOf: [],
            oneOf: [],
            not: []
        }
    }
    * */
    loadFields: function loadFields(schema,callback) {

        //debugger;
        var me = this; 
        //console.log(schema);
        var _readOnly = me.readOnly;
        var _schema = schema || {};
        var _fields = _schema.properties;
        if (Rsd.isEmpty(_fields)) {
            return;
        }

        var _w = 0;
        var _width = me.getWidth() || me.parent.getWidth();
        var _index = 0;
        var _last_type = "";
        this.setElStyle('dom',{ backgroundColor:me.bgColors[_index%me.bgColors.length]});
 
        for (var p in _fields) {
            //debugger;
            var f = _fields[p];
            //console.log(p,f); 
            _index++;
            try {

                switch (f.type) {
                    case 'array': {
                        var _cols = f.items.map(function(item){
                            return {name:item.$id,dataIndex:item.$id,text:item.title || item.$id,xtype:item.type};
                        });
                        _cols.push({
                            text:'操 作',
                            align:'center',
                            schema:f,
                            width:70,
                            format:function(row,parent){
                              
                                var _f = this.schema;
                                return [
                                    Rsd.button('修 改',function(evt){
                                         
                                        Rsd.create('Rsd.tool.PageEditor',{
                                            width:_f.itemWidth||'60%',
                                            height:_f.itemHeight||'50%',
                                            title:(_f.itemTitle||'子项信息')+'编辑',
                                            dsName:_f.$id,
                                            dsSchema:{
                                                title:_f.itemTitle||'子项信息',
                                                properties:_f.items
                                            },
                                            data:row
                                        }).showDialog(); 
                                       
                                    }),
                                    Rsd.blankspace(2),
                                    Rsd.button('删 除',function(evt){
                                        console.log('del',row);
                                    })
                                ];
                            }
                        });
                        //console.log('this are cols:',_cols);
                        //console.log('rows',f.examples);
                       
                        var _grid = {
                            xtype: 'grid',
                            id: f.id || f.name,
                            dataIndex: f.dataIndex || f.dataindex || f.name || f.$id, 
                            height: f.height || 100 + f.examples.length *41,
                            name: f.$id,
                            style:{
                                backgroundColor:me.bgColors[_index%me.bgColors.length],
                            },
                            label: {
                                position:'top',
                                align:'left',
                                content: '&amp;nbsp;&amp;nbsp;' + (f.title || f.$id),
                                space:0,
                                style: {   
                                    fontSize:'150%', 
                                    lineHeight: f.height || 40 
                                }
                            },
                            margin:'0 0 0 2%',
                            width: '96%',
                            columns: _cols,
                            readOnly: true,
                            border: true,
                            tabIndex: _index,
                            dataSource: f.examples
                        };
                        me.add({xtype:'component-x',height:10});
                        me.add(_grid);
                        break;
                    }
                    case 'object':
                        {
                            //console.log('is object', f);
                            var form = {
                                xtype: 'json-form',
                                id: f.id || f.name,
                                dataIndex: f.dataIndex || f.dataindex || f.name || f.$id,
                                height: f.height || 60 + (f.properties.length/2+ f.properties.length%2) * 45,
                                width: '96%',
                                style:{
                                    backgroundColor:me.bgColors[_index%me.bgColors.length],
                                },
                                margin:'0 0 0 2%',
                                readOnly:me.readOnly,
                                schema:f,
                                header: {
                                    position:'top',
                                    align:'left',
                                    content: '&amp;nbsp;&amp;nbsp;' + (f.title || f.$id), 
                                    space:0,
                                    style: {  
                                            fontSize:'150%', 
                                            lineHeight: f.height || 40 
                                        }
                                },
                            }
                            me.add({xtype:'component-x',height:10});
                            me.add(form);
                            break;
                    }
                    case 'string':
                    default: {
                        
                            if(_last_type == "array" || _last_type == "object")
                            {
                                me.add({xtype:'component-x',height:10});
                            }
                            //console.log(f.examples);
                            var _value = f.examples.length > 0?f.examples[0]:'';
                            var _field = {
                                xtype: f.type == 'string'? 'text':f.type,
                                id: f.id || f.name,
                                dataIndex: f.dataIndex || f.dataindex || f.name || f.$id,
                                tabIndex: _index,
                                placeholder:_value,
                                //margin: '4 0 4 0',
                                width: f.width || me.fieldWidth,
                                height: f.height || 40,
                                name: f.$id,
                                title: f.description,
                                required: f.required,
                                minLength: f.minLength,
                                maxLength: f.maxLength,
                                pattern: f.pattern,
                                format: f.format,
                                enum: f.enum,
                                //value:_value,
                                default: f.default,
                                label: {
                                    content: f.title || f.$id,
                                    width:90,
                                    style: { lineHeight: f.height || 40 }
                                },

                            };
                            //console.log(_field);
                            if (f.labelStyle) {
                                _field.label.style = Rsd.apply(_field.label.style, f.labelStyle);
                                delete _field.label.text;
                            }
                            if (f.hasOwnProperty('readOnly')) {
                                _field.readOnly = (_readOnly ? true : f.readOnly);
                            }
                            else {
                                _field.readOnly = _readOnly;
                            }
                            var _h = 0;
                            if (_field.xtype != 'hidden') {
                                _h = _field.height || 40;
                            }
                            _w += _field.width || 0;
                            if (_field.width &amp;&amp; _width &amp;&amp; _w &lt; _width) {
                            }
                            else {
                                _w = _field.width || 0;
                            }
                            me.add(_field);
                            break;
                    }
                }

            }
            catch (ex) {
                console.error('JsonFrom loadFields occured exception',ex);
            }

            _last_type = f.type;
        }
        //
        me.add({xtype:'component-x',height:10});
        //
        if(callback)
        {
            this.funApplyByIOC(callback,[]);
        }
      
        return this;
    }, 
     /**
     *@description 
     * */
    loadData: function loadData(data) {

        var _data = data || this.data || {};
        this.data = _data;

        var me = this;
       
        var id = setInterval (function(){

            if(!me.isLayout)
            {
                return;
            }
            clearInterval(id);

            //console.log(me.dataIndex,me.items.length);
            var _item = null;
            var _dataIndex = null;
            var _value = null;
    
            for (var i = 0; i &lt; me.items.length; i++) {

                _item = me.items[i];
                if(_item.$className === 'Rsd.common.ComponentX')
                {
                    continue;
                }
                _dataIndex = _item.dataIndex || _item.dataindex || '';
    
               if(_dataIndex==undefined 
                ||_dataIndex == null 
                || _dataIndex=='')
               {
                    continue;
               }
                //获取值
                try {
                  
                    if (_data[_dataIndex] !== undefined) 
                    {
                        _value = _data[_dataIndex];
                    }
                    else
                    {
                        var list = _dataIndex.split('.');
                        var j = 0;
                        var _p = _data;
                        while (list.length > 1 &amp;&amp; j &lt; list.length &amp;&amp; Rsd.hasProperty(_p, list[j])) {
                            _p = _p[list[j]];
                            j++;
                        }
                        if (j == list.length) {
                            _value = _p;
                        }
                    }
                }
                catch (e) {
                    console.error('JsonForm LoadData Occured Exception',e);
                }
     
                //设置值
                if(Rsd.isFunction(_item.setValue))
                {
                    _item.setValue(_value);
                }  
                 
                //加载值
                if(Rsd.isFunction(_item.loadData))
                {
                    _item.loadData(_value);
                }
            }
            me.isLoaded = true;

            },100);

        return this;
    },

    /**
     * @description 验证控件输入值 是否有效
     *  */
    checkRecord: function checkRecord() {

        var _item = null;
        var _form = this;
        this.errorList = [];
        for (var i = 0; i &lt; _form.items.length; i++) {
            _item = _form.items[i];

            if (!Rsd.isFunction(_item.checkValue)) {
                if(_item.xtype !=='component-x'  || _item.xtype !=='container' )
                {
                    continue;
                }
                console.warn();('Control [' + _item.$className + '('+_item.xtype+')] has no function \'checkValue\'.');
                continue;
            }

            try {
                if (!_item.checkValue()) {
                    this.errorList.push(_item.getError());
                }
            }
            catch (err) {
                console.error(err);
            }

        }

        return this.errorList.length == 0;
    },
    /**
    * @description 错误消息处理
    * @description handler:方法注入
    * */
    showError: function showError(handler) {

        if (this.errorList.length > 0) {
            if (handler) {
                handler.call(this, [this.errorList]);
            }
            else {
                Rsd.alert('错误提示', this.errorList);
            }
        }

    },
    /** 
    * @description 将控件获取到到数据合并到 参数obj 或data 中返回；
    * @description 在获取前，应先验证form的数据是否全部有效，
    *
    * */
    getRecord: function getRecord(obj) {

        var _obj = obj || this.data || {};
        var me = this;
        var _item = null;
        var _form = me;

        for (var i = 0; i &lt; _form.items.length; i++) {
            _item = _form.items[i];

            if (_item.readOnly) {
                //continue;
            }
            var _dataIndex = _item.dataIndex || _item.dataindex || _item.name;
            if (Rsd.isEmpty(_dataIndex)) {
                continue;
            }
            _obj[_dataIndex] = _item.getValue();
        }

        return _obj;

    },
    /**
    *
    * @description 获取字段值
    * */
    getFieldValue: function getFieldValue(name) {
        var _obj = this.data || {};
        var me = this;
        var _item = null;
        var _form = me;

        for (var i = 0; i &lt; _form.items.length; i++) {
            _item = _form.items[i];
            if (_item.readOnly) {
                continue;
            }
            _obj[_item.dataIndex || _item.dataindex] = _item.getValue();
        }

        return _obj[name];
    },

   
    /*
    *@param key:index or name or id  or xtype
    * */
    getFieldControl: function getFieldControl(key) {
        if (Rsd.isNumber(key)) {
            return this.items[key];
        }
        return this.getItemByName(key) || this.getItemById(key) || this.getItemByXtype(key);
    },
    /**
     * 
     */
    getScrollHeight: function getScrollHeight() {
        return this.body.scrollHeight;
    }


}, function (type) {

    var _dataGetter = function () {

        if (!this.hasOwnProperty('__data')) {
            this.__data = {};
        }
        return this.__data;
    };
    var _dataSetter = function (value) {

        this.__data = value;
        return;

    };
    this.defineProperty(type, "data", _dataGetter, _dataSetter, true);

    //
    this.defineProperty(type, "isLoaded", function () {

        if (!this.hasOwnProperty('__isLoaded')) {
            this.__isLoaded = false;
        }
        return this.__isLoaded;

    }, function (value) {
        this.__isLoaded = value;
    } , false);

});
</code></pre>
        </article>
    </section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="global.html#Rsd">Rsd</a></li><li><a href="Rsd.common.html">common</a></li><li><a href="Rsd.container.html">container</a></li><li><a href="Rsd.control.html">control</a></li><li><a href="Rsd.data.html">data</a></li><li><a href="Rsd.template.html">template</a></li><li><a href="Rsd.widget.html">widget</a></li></ul><h3>Classes</h3><ul><li><a href="Redjs.html">Redjs</a></li><li><a href="Rsd.data.Ajax.html">Ajax</a></li><li><a href="Rsd.data.ModelSchema.html">ModelSchema</a></li><li><a href="Rsd.data.Service.html">Service</a></li><li><a href="window.Rsd.LogApi.html">LogApi</a></li></ul><h3>Global</h3><ul><li><a href="global.html#gbkToUTF8">gbkToUTF8</a></li><li><a href="global.html#mmToPx">mmToPx</a></li><li><a href="global.html#pxToMm">pxToMm</a></li><li><a href="global.html#unicodeToUTF8">unicodeToUTF8</a></li><li><a href="global.html#_btn_preview">_btn_preview</a></li><li><a href="global.html#_btn_save">_btn_save</a></li><li><a href="global.html#_imageItemDblClick">_imageItemDblClick</a></li><li><a href="global.html#accept">accept</a></li><li><a href="global.html#add">add</a></li><li><a href="global.html#addCls">addCls</a></li><li><a href="global.html#addControl">addControl</a></li><li><a href="global.html#addCookie">addCookie</a></li><li><a href="global.html#addItem">addItem</a></li><li><a href="global.html#addNode">addNode</a></li><li><a href="global.html#addObject">addObject</a></li><li><a href="global.html#addService">addService</a></li><li><a href="global.html#addTotalRow">addTotalRow</a></li><li><a href="global.html#addTreeNode">addTreeNode</a></li><li><a href="global.html#afterClose">afterClose</a></li><li><a href="global.html#afterShow">afterShow</a></li><li><a href="global.html#albumsItemDblClick">albumsItemDblClick</a></li><li><a href="global.html#albumsItemViewDetail">albumsItemViewDetail</a></li><li><a href="global.html#allFields">allFields</a></li><li><a href="global.html#alwaysWrap">alwaysWrap</a></li><li><a href="global.html#animate">animate</a></li><li><a href="global.html#appId">appId</a></li><li><a href="global.html#app_afterLayout">app_afterLayout</a></li><li><a href="global.html#apply">apply</a></li><li><a href="global.html#arrayConcat">arrayConcat</a></li><li><a href="global.html#authCode">authCode</a></li><li><a href="global.html#authorization">authorization</a></li><li><a href="global.html#autoCompleteHandler">autoCompleteHandler</a></li><li><a href="global.html#autoExpanded">autoExpanded</a></li><li><a href="global.html#autoLoad">autoLoad</a></li><li><a href="global.html#autoScrollIntoView">autoScrollIntoView</a></li><li><a href="global.html#backgroundImage">backgroundImage</a></li><li><a href="global.html#beforeClose">beforeClose</a></li><li><a href="global.html#beforeShow">beforeShow</a></li><li><a href="global.html#bgColors">bgColors</a></li><li><a href="global.html#bindEvent">bindEvent</a></li><li><a href="global.html#blankspan">blankspan</a></li><li><a href="global.html#block">block</a></li><li><a href="global.html#border">border</a></li><li><a href="global.html#btn_add">btn_add</a></li><li><a href="global.html#btn_add_albums">btn_add_albums</a></li><li><a href="global.html#btn_close">btn_close</a></li><li><a href="global.html#btn_new_image">btn_new_image</a></li><li><a href="global.html#btn_preview">btn_preview</a></li><li><a href="global.html#btn_publish">btn_publish</a></li><li><a href="global.html#btn_refesh_ds">btn_refesh_ds</a></li><li><a href="global.html#btn_refresh">btn_refresh</a></li><li><a href="global.html#btn_reset">btn_reset</a></li><li><a href="global.html#btn_save">btn_save</a></li><li><a href="global.html#btn_save_and_publish">btn_save_and_publish</a></li><li><a href="global.html#btn_share">btn_share</a></li><li><a href="global.html#btn_show_selector">btn_show_selector</a></li><li><a href="global.html#build">build</a></li><li><a href="global.html#buildColumns">buildColumns</a></li><li><a href="global.html#buildRows">buildRows</a></li><li><a href="global.html#buildTree">buildTree</a></li><li><a href="global.html#button">button</a></li><li><a href="global.html#callFunction">callFunction</a></li><li><a href="global.html#changeCls">changeCls</a></li><li><a href="global.html#checkRecord">checkRecord</a></li><li><a href="global.html#checkSessionServiceName">checkSessionServiceName</a></li><li><a href="global.html#checkToken">checkToken</a></li><li><a href="global.html#checkValue">checkValue</a></li><li><a href="global.html#checkbox">checkbox</a></li><li><a href="global.html#circle">circle</a></li><li><a href="global.html#clear">clear</a></li><li><a href="global.html#clearHotKey">clearHotKey</a></li><li><a href="global.html#clearLocal">clearLocal</a></li><li><a href="global.html#clearSelected">clearSelected</a></li><li><a href="global.html#clearSession">clearSession</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#close">close</a></li><li><a href="global.html#closeBtn">closeBtn</a></li><li><a href="global.html#closeDB">closeDB</a></li><li><a href="global.html#closeDropdownBox">closeDropdownBox</a></li><li><a href="global.html#closeLoading">closeLoading</a></li><li><a href="global.html#closeWaiting">closeWaiting</a></li><li><a href="global.html#codeMember">codeMember</a></li><li><a href="global.html#collapseAll">collapseAll</a></li><li><a href="global.html#colorMember">colorMember</a></li><li><a href="global.html#compile">compile</a></li><li><a href="global.html#compress">compress</a></li><li><a href="global.html#constructor">constructor</a></li><li><a href="global.html#contain">contain</a></li><li><a href="global.html#containCls">containCls</a></li><li><a href="global.html#copy">copy</a></li><li><a href="global.html#createInnerControl">createInnerControl</a></li><li><a href="global.html#crossDomain">crossDomain</a></li><li><a href="global.html#currentIndex">currentIndex</a></li><li><a href="global.html#data">data</a></li><li><a href="global.html#dataSource">dataSource</a></li><li><a href="global.html#dataStore">dataStore</a></li><li><a href="global.html#dataType">dataType</a></li><li><a href="global.html#daysStyle">daysStyle</a></li><li><a href="global.html#debug">debug</a></li><li><a href="global.html#decodeURI">decodeURI</a></li><li><a href="global.html#defineEnums">defineEnums</a></li><li><a href="global.html#defineRem">defineRem</a></li><li><a href="global.html#delay">delay</a></li><li><a href="global.html#deleteCookie">deleteCookie</a></li><li><a href="global.html#deleteDB">deleteDB</a></li><li><a href="global.html#deleteObject">deleteObject</a></li><li><a href="global.html#deleteRow">deleteRow</a></li><li><a href="global.html#deleteService">deleteService</a></li><li><a href="global.html#detectNavigator">detectNavigator</a></li><li><a href="global.html#detectOS">detectOS</a></li><li><a href="global.html#doLayout">doLayout</a></li><li><a href="global.html#doc">doc</a></li><li><a href="global.html#domTagName">domTagName</a></li><li><a href="global.html#download">download</a></li><li><a href="global.html#draggable">draggable</a></li><li><a href="global.html#drawCaption">drawCaption</a></li><li><a href="global.html#drawImage">drawImage</a></li><li><a href="global.html#drawList">drawList</a></li><li><a href="global.html#dsSchema">dsSchema</a></li><li><a href="global.html#dstype_change">dstype_change</a></li><li><a href="global.html#dynamic">dynamic</a></li><li><a href="global.html#edit">edit</a></li><li><a href="global.html#editRow">editRow</a></li><li><a href="global.html#empty">empty</a></li><li><a href="global.html#emptyImage">emptyImage</a></li><li><a href="global.html#encodeURI">encodeURI</a></li><li><a href="global.html#enumLabel">enumLabel</a></li><li><a href="global.html#enumText">enumText</a></li><li><a href="global.html#error">error</a></li><li><a href="global.html#exchange">exchange</a></li><li><a href="global.html#exeHotKeyFun">exeHotKeyFun</a></li><li><a href="global.html#expandAll">expandAll</a></li><li><a href="global.html#export">export</a></li><li><a href="global.html#fieldWidth">fieldWidth</a></li><li><a href="global.html#file">file</a></li><li><a href="global.html#fileDownloadServiceName">fileDownloadServiceName</a></li><li><a href="global.html#fileUploadServiceName">fileUploadServiceName</a></li><li><a href="global.html#findNode">findNode</a></li><li><a href="global.html#findObject">findObject</a></li><li><a href="global.html#findService">findService</a></li><li><a href="global.html#fire">fire</a></li><li><a href="global.html#fireResize">fireResize</a></li><li><a href="global.html#firstPage">firstPage</a></li><li><a href="global.html#fixed">fixed</a></li><li><a href="global.html#floating">floating</a></li><li><a href="global.html#formatApi">formatApi</a></li><li><a href="global.html#formatCurrency">formatCurrency</a></li><li><a href="global.html#formatCurrencyCN">formatCurrencyCN</a></li><li><a href="global.html#formatJson">formatJson</a></li><li><a href="global.html#formatLabels">formatLabels</a></li><li><a href="global.html#formatNumber">formatNumber</a></li><li><a href="global.html#formatString">formatString</a></li><li><a href="global.html#formatTimestamp">formatTimestamp</a></li><li><a href="global.html#from">from</a></li><li><a href="global.html#fullScreen">fullScreen</a></li><li><a href="global.html#funApplyByIOC">funApplyByIOC</a></li><li><a href="global.html#funBindByIOC">funBindByIOC</a></li><li><a href="global.html#get">get</a></li><li><a href="global.html#getApp">getApp</a></li><li><a href="global.html#getAppAuthorization">getAppAuthorization</a></li><li><a href="global.html#getAppConfig">getAppConfig</a></li><li><a href="global.html#getAppId">getAppId</a></li><li><a href="global.html#getAppToken">getAppToken</a></li><li><a href="global.html#getByteLength">getByteLength</a></li><li><a href="global.html#getCheckedNodes">getCheckedNodes</a></li><li><a href="global.html#getColumns">getColumns</a></li><li><a href="global.html#getControl">getControl</a></li><li><a href="global.html#getControlConfig">getControlConfig</a></li><li><a href="global.html#getCookie">getCookie</a></li><li><a href="global.html#getDPI">getDPI</a></li><li><a href="global.html#getData">getData</a></li><li><a href="global.html#getDocConfig">getDocConfig</a></li><li><a href="global.html#getDocument">getDocument</a></li><li><a href="global.html#getDom">getDom</a></li><li><a href="global.html#getElAttribute">getElAttribute</a></li><li><a href="global.html#getFieldValue">getFieldValue</a></li><li><a href="global.html#getFields">getFields</a></li><li><a href="global.html#getFile">getFile</a></li><li><a href="global.html#getFileName">getFileName</a></li><li><a href="global.html#getFormData">getFormData</a></li><li><a href="global.html#getFunctionName">getFunctionName</a></li><li><a href="global.html#getGlobalVariable">getGlobalVariable</a></li><li><a href="global.html#getHeight">getHeight</a></li><li><a href="global.html#getItem">getItem</a></li><li><a href="global.html#getItemById">getItemById</a></li><li><a href="global.html#getItemByName">getItemByName</a></li><li><a href="global.html#getItemByXtype">getItemByXtype</a></li><li><a href="global.html#getJsonSchema">getJsonSchema</a></li><li><a href="global.html#getKeyValue">getKeyValue</a></li><li><a href="global.html#getObjectByIndex">getObjectByIndex</a></li><li><a href="global.html#getObjectByKey">getObjectByKey</a></li><li><a href="global.html#getPaging">getPaging</a></li><li><a href="global.html#getPlugin">getPlugin</a></li><li><a href="global.html#getRecord">getRecord</a></li><li><a href="global.html#getRedjsHost">getRedjsHost</a></li><li><a href="global.html#getRedjsUrl">getRedjsUrl</a></li><li><a href="global.html#getRowData">getRowData</a></li><li><a href="global.html#getSchema">getSchema</a></li><li><a href="global.html#getSchemaList">getSchemaList</a></li><li><a href="global.html#getScrollHeight">getScrollHeight</a></li><li><a href="global.html#getSelectedNodes">getSelectedNodes</a></li><li><a href="global.html#getService">getService</a></li><li><a href="global.html#getStringWidth">getStringWidth</a></li><li><a href="global.html#getText">getText</a></li><li><a href="global.html#getTouched">getTouched</a></li><li><a href="global.html#getType">getType</a></li><li><a href="global.html#getUrlParam">getUrlParam</a></li><li><a href="global.html#getUserAgent">getUserAgent</a></li><li><a href="global.html#getValue">getValue</a></li><li><a href="global.html#getValueItem">getValueItem</a></li><li><a href="global.html#getView">getView</a></li><li><a href="global.html#getWhere">getWhere</a></li><li><a href="global.html#getWidth">getWidth</a></li><li><a href="global.html#getXhr">getXhr</a></li><li><a href="global.html#getZIndex">getZIndex</a></li><li><a href="global.html#globalVariables">globalVariables</a></li><li><a href="global.html#goTo">goTo</a></li><li><a href="global.html#gridColumns">gridColumns</a></li><li><a href="global.html#handleEvent">handleEvent</a></li><li><a href="global.html#handleUploadEvent">handleUploadEvent</a></li><li><a href="global.html#hasProperty">hasProperty</a></li><li><a href="global.html#hidden">hidden</a></li><li><a href="global.html#hide">hide</a></li><li><a href="global.html#httpGet">httpGet</a></li><li><a href="global.html#httpPost">httpPost</a></li><li><a href="global.html#httpRequest">httpRequest</a></li><li><a href="global.html#iframe_load">iframe_load</a></li><li><a href="global.html#imageDblClick">imageDblClick</a></li><li><a href="global.html#images">images</a></li><li><a href="global.html#indexEditServiceName">indexEditServiceName</a></li><li><a href="global.html#indexLoadServiceName">indexLoadServiceName</a></li><li><a href="global.html#info">info</a></li><li><a href="global.html#init">init</a></li><li><a href="global.html#initComponent">initComponent</a></li><li><a href="global.html#initComponentEx">initComponentEx</a></li><li><a href="global.html#initDropdownBox">initDropdownBox</a></li><li><a href="global.html#initImage">initImage</a></li><li><a href="global.html#insertItem">insertItem</a></li><li><a href="global.html#insertObject">insertObject</a></li><li><a href="global.html#insertService">insertService</a></li><li><a href="global.html#inset">inset</a></li><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isChrome">isChrome</a></li><li><a href="global.html#isCreated">isCreated</a></li><li><a href="global.html#isDate">isDate</a></li><li><a href="global.html#isDestroyed">isDestroyed</a></li><li><a href="global.html#isDisabled">isDisabled</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isFunction">isFunction</a></li><li><a href="global.html#isHidden">isHidden</a></li><li><a href="global.html#isLoading">isLoading</a></li><li><a href="global.html#isMobile">isMobile</a></li><li><a href="global.html#isNaN">isNaN</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNullOrUndefined">isNullOrUndefined</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isReady">isReady</a></li><li><a href="global.html#isRendered">isRendered</a></li><li><a href="global.html#isString">isString</a></li><li><a href="global.html#isTrue">isTrue</a></li><li><a href="global.html#isType">isType</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#isView">isView</a></li><li><a href="global.html#isWeChat">isWeChat</a></li><li><a href="global.html#isWeChatApp">isWeChatApp</a></li><li><a href="global.html#itemCls">itemCls</a></li><li><a href="global.html#itemKeyMember">itemKeyMember</a></li><li><a href="global.html#itemLabelWidth">itemLabelWidth</a></li><li><a href="global.html#itemSelectedCls">itemSelectedCls</a></li><li><a href="global.html#itemXtype">itemXtype</a></li><li><a href="global.html#items">items</a></li><li><a href="global.html#jsonFormatter">jsonFormatter</a></li><li><a href="global.html#label">label</a></li><li><a href="global.html#lang">lang</a></li><li><a href="global.html#lastPage">lastPage</a></li><li><a href="global.html#layout">layout</a></li><li><a href="global.html#layoutAuto">layoutAuto</a></li><li><a href="global.html#layoutBorder">layoutBorder</a></li><li><a href="global.html#layoutContent">layoutContent</a></li><li><a href="global.html#layoutHbox">layoutHbox</a></li><li><a href="global.html#layoutItems">layoutItems</a></li><li><a href="global.html#layoutVbox">layoutVbox</a></li><li><a href="global.html#link">link</a></li><li><a href="global.html#listObject">listObject</a></li><li><a href="global.html#listObjects">listObjects</a></li><li><a href="global.html#listService">listService</a></li><li><a href="global.html#listeners">listeners</a></li><li><a href="global.html#load">load</a></li><li><a href="global.html#loadClass">loadClass</a></li><li><a href="global.html#loadCssFile">loadCssFile</a></li><li><a href="global.html#loadCtrlProperty">loadCtrlProperty</a></li><li><a href="global.html#loadData">loadData</a></li><li><a href="global.html#loadDocPages">loadDocPages</a></li><li><a href="global.html#loadFields">loadFields</a></li><li><a href="global.html#loadImage">loadImage</a></li><li><a href="global.html#loadIndex">loadIndex</a></li><li><a href="global.html#loadPlugin">loadPlugin</a></li><li><a href="global.html#loadScriptFile">loadScriptFile</a></li><li><a href="global.html#loadServiceApi">loadServiceApi</a></li><li><a href="global.html#loadServices">loadServices</a></li><li><a href="global.html#loadTemplateFile">loadTemplateFile</a></li><li><a href="global.html#mailTo">mailTo</a></li><li><a href="global.html#makeControl">makeControl</a></li><li><a href="global.html#makeObject">makeObject</a></li><li><a href="global.html#mappingUrl">mappingUrl</a></li><li><a href="global.html#maxLength">maxLength</a></li><li><a href="global.html#maxSize">maxSize</a></li><li><a href="global.html#md5">md5</a></li><li><a href="global.html#messageStyle">messageStyle</a></li><li><a href="global.html#metaInfo">metaInfo</a></li><li><a href="global.html#minSize">minSize</a></li><li><a href="global.html#model">model</a></li><li><a href="global.html#multiple">multiple</a></li><li><a href="global.html#name">name</a></li><li><a href="global.html#navigation">navigation</a></li><li><a href="global.html#newLine">newLine</a></li><li><a href="global.html#newRow">newRow</a></li><li><a href="global.html#next">next</a></li><li><a href="global.html#nextPage">nextPage</a></li><li><a href="global.html#nobr">nobr</a></li><li><a href="global.html#on">on</a></li><li><a href="global.html#onAfterInit">onAfterInit</a></li><li><a href="global.html#onAfterLayout">onAfterLayout</a></li><li><a href="global.html#onAfterRender">onAfterRender</a></li><li><a href="global.html#onAfterShow">onAfterShow</a></li><li><a href="global.html#onBeforeInit">onBeforeInit</a></li><li><a href="global.html#onBeforeLayout">onBeforeLayout</a></li><li><a href="global.html#onBeforeRender">onBeforeRender</a></li><li><a href="global.html#onBeforeShow">onBeforeShow</a></li><li><a href="global.html#onChanged">onChanged</a></li><li><a href="global.html#onPageSizeChanged">onPageSizeChanged</a></li><li><a href="global.html#on_checked">on_checked</a></li><li><a href="global.html#onchange">onchange</a></li><li><a href="global.html#ondelete">ondelete</a></li><li><a href="global.html#onload">onload</a></li><li><a href="global.html#onselect">onselect</a></li><li><a href="global.html#onview">onview</a></li><li><a href="global.html#openDB">openDB</a></li><li><a href="global.html#overflow">overflow</a></li><li><a href="global.html#pageIndexChanged">pageIndexChanged</a></li><li><a href="global.html#pageSizeList">pageSizeList</a></li><li><a href="global.html#page_type_changed">page_type_changed</a></li><li><a href="global.html#panelStyle">panelStyle</a></li><li><a href="global.html#patchButton">patchButton</a></li><li><a href="global.html#post">post</a></li><li><a href="global.html#postFileFromString">postFileFromString</a></li><li><a href="global.html#postFiles">postFiles</a></li><li><a href="global.html#pr_on_changed">pr_on_changed</a></li><li><a href="global.html#pr_rowdblclick">pr_rowdblclick</a></li><li><a href="global.html#previousPage">previousPage</a></li><li><a href="global.html#print">print</a></li><li><a href="global.html#printBorder">printBorder</a></li><li><a href="global.html#printCallStack">printCallStack</a></li><li><a href="global.html#proxy">proxy</a></li><li><a href="global.html#readFile">readFile</a></li><li><a href="global.html#readLocal">readLocal</a></li><li><a href="global.html#readOnly">readOnly</a></li><li><a href="global.html#readSession">readSession</a></li><li><a href="global.html#redirect">redirect</a></li><li><a href="global.html#refresh">refresh</a></li><li><a href="global.html#registerHotKey">registerHotKey</a></li><li><a href="global.html#remove">remove</a></li><li><a href="global.html#removeAll">removeAll</a></li><li><a href="global.html#removeCls">removeCls</a></li><li><a href="global.html#removeItem">removeItem</a></li><li><a href="global.html#removeLocal">removeLocal</a></li><li><a href="global.html#removeSession">removeSession</a></li><li><a href="global.html#renderTo">renderTo</a></li><li><a href="global.html#render_html">render_html</a></li><li><a href="global.html#requestService">requestService</a></li><li><a href="global.html#resetAjaxConfig">resetAjaxConfig</a></li><li><a href="global.html#response">response</a></li><li><a href="global.html#restart">restart</a></li><li><a href="global.html#rowclick">rowclick</a></li><li><a href="global.html#rowdblclick">rowdblclick</a></li><li><a href="global.html#rows">rows</a></li><li><a href="global.html#run">run</a></li><li><a href="global.html#saveAlbum">saveAlbum</a></li><li><a href="global.html#saveHandler">saveHandler</a></li><li><a href="global.html#scale">scale</a></li><li><a href="global.html#scrollCurrentIntoView">scrollCurrentIntoView</a></li><li><a href="global.html#scrollIntoView">scrollIntoView</a></li><li><a href="global.html#searchHandler">searchHandler</a></li><li><a href="global.html#select">select</a></li><li><a href="global.html#selectAll">selectAll</a></li><li><a href="global.html#selectColumn">selectColumn</a></li><li><a href="global.html#selectControl">selectControl</a></li><li><a href="global.html#selectNode">selectNode</a></li><li><a href="global.html#selectPage">selectPage</a></li><li><a href="global.html#selectRow">selectRow</a></li><li><a href="global.html#selected">selected</a></li><li><a href="global.html#selectedOnClick">selectedOnClick</a></li><li><a href="global.html#selectedOnDblClick">selectedOnDblClick</a></li><li><a href="global.html#selectorServices">selectorServices</a></li><li><a href="global.html#services">services</a></li><li><a href="global.html#setAppToken">setAppToken</a></li><li><a href="global.html#setControlProperty">setControlProperty</a></li><li><a href="global.html#setDisabled">setDisabled</a></li><li><a href="global.html#setDocumentIndex">setDocumentIndex</a></li><li><a href="global.html#setDocumentTitle">setDocumentTitle</a></li><li><a href="global.html#setDomToken">setDomToken</a></li><li><a href="global.html#setElAttribute">setElAttribute</a></li><li><a href="global.html#setElStyle">setElStyle</a></li><li><a href="global.html#setGlobalVariable">setGlobalVariable</a></li><li><a href="global.html#setHeaderVisible">setHeaderVisible</a></li><li><a href="global.html#setHref">setHref</a></li><li><a href="global.html#setNewButtons">setNewButtons</a></li><li><a href="global.html#setPageIndex">setPageIndex</a></li><li><a href="global.html#setPaging">setPaging</a></li><li><a href="global.html#setPosition">setPosition</a></li><li><a href="global.html#setSearchColumns">setSearchColumns</a></li><li><a href="global.html#setUrlParam">setUrlParam</a></li><li><a href="global.html#setValue">setValue</a></li><li><a href="global.html#set_data">set_data</a></li><li><a href="global.html#showAlbumsDetail">showAlbumsDetail</a></li><li><a href="global.html#showDialog">showDialog</a></li><li><a href="global.html#showDialogOnLeft">showDialogOnLeft</a></li><li><a href="global.html#showDialogOnRight">showDialogOnRight</a></li><li><a href="global.html#showDropdownBox">showDropdownBox</a></li><li><a href="global.html#showError">showError</a></li><li><a href="global.html#showIndex">showIndex</a></li><li><a href="global.html#showItem">showItem</a></li><li><a href="global.html#showLoading">showLoading</a></li><li><a href="global.html#showModalDialog">showModalDialog</a></li><li><a href="global.html#showModelView">showModelView</a></li><li><a href="global.html#showTip">showTip</a></li><li><a href="global.html#showWaiting">showWaiting</a></li><li><a href="global.html#size">size</a></li><li><a href="global.html#sleep">sleep</a></li><li><a href="global.html#sort">sort</a></li><li><a href="global.html#src">src</a></li><li><a href="global.html#start">start</a></li><li><a href="global.html#statechange">statechange</a></li><li><a href="global.html#stop">stop</a></li><li><a href="global.html#submit">submit</a></li><li><a href="global.html#tabIndex">tabIndex</a></li><li><a href="global.html#templates">templates</a></li><li><a href="global.html#testServerHost">testServerHost</a></li><li><a href="global.html#text">text</a></li><li><a href="global.html#textMember">textMember</a></li><li><a href="global.html#timeout">timeout</a></li><li><a href="global.html#timing">timing</a></li><li><a href="global.html#title">title</a></li><li><a href="global.html#title_format">title_format</a></li><li><a href="global.html#toFormDataString">toFormDataString</a></li><li><a href="global.html#toHtml">toHtml</a></li><li><a href="global.html#toJson">toJson</a></li><li><a href="global.html#toJsonString">toJsonString</a></li><li><a href="global.html#toMultipartFormData">toMultipartFormData</a></li><li><a href="global.html#toPxValue">toPxValue</a></li><li><a href="global.html#toString">toString</a></li><li><a href="global.html#toggle">toggle</a></li><li><a href="global.html#toggleCls">toggleCls</a></li><li><a href="global.html#token">token</a></li><li><a href="global.html#transform">transform</a></li><li><a href="global.html#tree_select_ctrl">tree_select_ctrl</a></li><li><a href="global.html#types">types</a></li><li><a href="global.html#unResize">unResize</a></li><li><a href="global.html#updateObject">updateObject</a></li><li><a href="global.html#updateRow">updateRow</a></li><li><a href="global.html#updateService">updateService</a></li><li><a href="global.html#upload">upload</a></li><li><a href="global.html#uploadComplete">uploadComplete</a></li><li><a href="global.html#uploadProgress">uploadProgress</a></li><li><a href="global.html#uploadStart">uploadStart</a></li><li><a href="global.html#valueMember">valueMember</a></li><li><a href="global.html#viewAllImages">viewAllImages</a></li><li><a href="global.html#viewHandler">viewHandler</a></li><li><a href="global.html#warn">warn</a></li><li><a href="global.html#writeLocal">writeLocal</a></li><li><a href="global.html#writeSession">writeSession</a></li><li><a href="global.html#zoomView">zoomView</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Wed May 10 2023 10:57:22 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
